import { useState, memo } from "react";

export default memo(function B() {
  const [count, setCount] = useState(0);
  console.log("B组件");
  return (
    <div
      onClick={() => {
        setCount(count + 1);
      }}
    >
      B -- {count}
    </div>
  );
});
